<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="/resource/common/taglib.jspf"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${SESSION_COMPANY}-角色分配权限</title>
<%@include file="/resource/common/jquery.jspf"%>
<%@include file="/resource/common/bootstrap.jspf"%>
<%@include file="/resource/common/ztree.jspf"%>
<%@include file="/resource/common/validate.jspf"%>
<%@include file="/resource/common/showLoading.jspf"%>
<script type="text/javascript" src="${ctxStatic }/plugins/jquery/jquery.ztree/ztreeLayerAsyncAjaxPostUtils.js"></script>
</head>
<body>
	<div id="body-wrapper">
		<div id="main-content">
			<div class="tab-content default-tab" id="tab1">
				<input type="hidden" id="asyncResult" name="asyncResult" value="-1" /> 
				<input type="hidden" id="asyncResultData" name="asyncResultData" value="-1" /> 
				<input type="hidden" id="asyncResultError" name="asyncResultError" value="-1" />  
				<input type="hidden" id="checkIds" name="checkIds" value="" /> 
				<input type="hidden" id="rid" name="rid" value="${rid }" /> 
				<div class="zTreeDemoBackground left">
					<ul id="treeDemo" class="ztree">

					</ul>
				</div>
			</div>
		</div>
	</div>
<script type="text/javascript">
	var rid = $("#rid").val();
	//allotRoleAuthority.settingInit("moduleAuthorityTreeJson.do?rid=${rid }");
	var path = "${ctx }";
	$(document).ready(function() {
		//allotRoleAuthority.initZTree("treeDemo");
		$("treeDemo").ztreeUtils({
			url : "moduleAuthorityTreeJson.do?rid=${rid }",
			rootNode : "treeDemo",
			checkNodes : "#checkIds",
		});
	});
</script>
<style type="text/css">
A.MzTreeview {
	font-size: 9pt;
	padding-left: 0px;
}

div.zTreeDemoBackground {
	width: 250px;
	height: 450px;
	text-align: left;
}

ul.ztree {
	margin-top: 0px;
	border: 1px solid #ccc;
	background: #f0f6e4;
	width: 300px;
	height: 530px;
	overflow-y: auto;
	overflow-x: auto;
	position: absolute;
	z-index: 999
}
</style>
</body>
</html>